package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.base.BaseEntity;

import java.util.Date;

/**
 * 会员表 huiyuan
 * 
 * @author chengenjiang
 * @date 2019-07-16
 */
public class Huiyuan extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 会员信息Id */
	@Excel(name = "会员信息Id")
	private Integer huiyuanId;
	/** 上级会员ID */
	private Integer parentId;
	/** 祖级列表 */
	private String ancestors;
	/** 会员名称 */
	@Excel(name = "会员名称")
	private String mingCheng;
	/** 姓名 */
	@Excel(name = "姓名")
	private String name;
	/** 电话 */
	@Excel(name = "电话")
	private String telPhone;
	/** 地址 */
	@Excel(name = "地址")
	private String adress;
	/** 单位 */
	@Excel(name = "单位")
	private String danWei;
	/** 状态 */
	@Excel(name = "状态", readConverterExp = "0=正常,1=停用")
	private Integer status;
	/** 创建时间 */
	@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", type = Excel.Type.EXPORT)
	private Date createTime;
	/** 修改时间 */
	@Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", type = Excel.Type.EXPORT)
	private Date updateTime;
	/** 扩展字段 */
	@Excel(name = "备注")
	private String attribute;
	/** 密码 */
	private String password;

	public void setHuiyuanId(Integer huiyuanId) 
	{
		this.huiyuanId = huiyuanId;
	}

	public Integer getHuiyuanId() 
	{
		return huiyuanId;
	}
	public void setParentId(Integer parentId) 
	{
		this.parentId = parentId;
	}

	public Integer getParentId() 
	{
		return parentId;
	}
	public void setAncestors(String ancestors) 
	{
		this.ancestors = ancestors;
	}

	public String getAncestors() 
	{
		return ancestors;
	}
	public void setMingCheng(String mingCheng) 
	{
		this.mingCheng = mingCheng;
	}

	public String getMingCheng() 
	{
		return mingCheng;
	}
	public void setName(String name) 
	{
		this.name = name;
	}

	public String getName() 
	{
		return name;
	}
	public void setTelPhone(String telPhone) 
	{
		this.telPhone = telPhone;
	}

	public String getTelPhone() 
	{
		return telPhone;
	}
	public void setAdress(String adress) 
	{
		this.adress = adress;
	}

	public String getAdress() 
	{
		return adress;
	}
	public void setDanWei(String danWei) 
	{
		this.danWei = danWei;
	}

	public String getDanWei() 
	{
		return danWei;
	}
	public void setStatus(Integer status) 
	{
		this.status = status;
	}

	public Integer getStatus() 
	{
		return status;
	}

	public void setAttribute(String attribute) 
	{
		this.attribute = attribute;
	}

	public String getAttribute() 
	{
		return attribute;
	}
	@Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("huiyuanId", getHuiyuanId())
            .append("parentId", getParentId())
            .append("ancestors", getAncestors())
            .append("mingCheng", getMingCheng())
            .append("name", getName())
            .append("telPhone", getTelPhone())
            .append("adress", getAdress())
            .append("danWei", getDanWei())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("attribute", getAttribute())
            .toString();
    }

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Override
	public Date getCreateTime() {
		return createTime;
	}

	@Override
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
}
